<html>
<head>
    <meta charset="utf-8">

    <link href="__CSS__bootstrap.min.css" type="text/css" rel="stylesheet">
    <link href="__CSS__index.css" type="text/css" rel="stylesheet">
    <script src="__JS__jquery-3.1.1.min.js"></script>
    <script src="__JS__bootstrap.min.js"></script>
</head>
<body>
<!--导航栏start-->
<!--<include file="Public:header" />-->
{:W('Menu/header')}
<!--导航栏end-->

<!--菜单栏start-->
<!--<include file="Public:left" />-->
{:W('Menu/left')}
<!--菜单栏end-->

<ol class="breadcrumb col-sm-9 col-md-10">
    <li><a href="tags">日记管理</a></li>
    <li class="active">日记添加</li>
</ol>

<div class="panel panel-default col-sm-9 col-md-10">
    <div class="panel-body">
        <h3 class="panel panel-header">日记添加</h3>
        <form action="__CONTROLLER__/pdadd" method="POST" >
            <div class="form-group">
                <p>日记标题</p>
                <input name="title" class="form-control" type="text"/>
            </div>
            <div class="form-group">
                <p>日记内容</p>
                <textarea class="col-sm-12 col-md-12" name="content" contentEditable="true" style="border:1px solid #AAAAAA; padding:1em;margin-bottom:1em;">
                </textarea>
            </div>
            <input id="time" type="hidden" name="time"/>
            <input id="sub" class="btn btn-default" type="submit" />
        </form>
    </div>
</div>

</body>
    <script>
        $('#sub').on('click',function(){
            $('#time').val(getNowFormatDate());
        });
    </script>
</html>